{% extends 'admin/layout/base.html.twig' %}

{% block content %}

<div class="main">
    <!-- MAIN CONTENT -->
    <div class="main-content">
        <div class="container-fluid">
            <!-- OVERVIEW -->
             <div class="row">
                {% for entity in pagination %}   
                    <div class="col-md-3">
                        <div class="panel">
                            <div class="metric">
                            <a href="{{path('showPage',{id:entity.id})}}">
                                {% if entity.picurl %}
                                    <div class="coverimage icon"><img src="{{entity.picurl}}" /></div>
                                {% else %}
                                    <span class="icon"><i class="fa fa-eye"></i></span>
                                {% endif %}
                                <p>
                                    <span class="number">{{entity.name}}</span>
                                    <span class="title">{{entity.category.name}}</span>
                                </p>
                            </a>
                            </div>
                        </div>
                    </div>   
                                                       
                {% endfor %}
                
            </div>
            <div class="row pagination-outer">
                {{ knp_pagination_render(pagination) }}  
            </div>
        </div>
    </div>
</div>    
{% endblock %}